[PATCH] [OpenMP] Replace libomp_check_linker_flag with llvm_check_compiler_linker_flag
authorNikita Popov <npopov@redhat.com>
Thu, 20 Apr 2023 12:59:27 +0000 (14:59 +0200)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 31 Jul 2023 20:16:10 +0000 (21:16 +0100)
commit32615b803aaf6e6753274f2827d88f7a4c89b6e3
treeaa1f345eae2d77de68c1b9ca64aadc95a4a4e727
parent4d7c1efe0d9dec32528dbd7ebaab9f35f08d3d64
[PATCH] [OpenMP] Replace libomp_check_linker_flag with llvm_check_compiler_linker_flag

Replace the custom libomp_check_linker_flag() implementation with
llvm_check_compiler_linker_flag() from the common cmake utils. Due
to the way the custom implementation is implemented (capturing
output from an entire nested cmake invocation) it can easily end
up incorrectly detecting flags as unavailable, e.g. because "error",
"unknown" or similar occurs inside compiler flags, the directory
name, etc.

Fixes https://github.com/llvm/llvm-project/issues/62240.

Differential Revision: https://reviews.llvm.org/D148798

Gbp-Pq: Name new-cmake-build-fix.patch
openmp/runtime/cmake/LLVMCheckCompilerLinkerFlag.cmake [new file with mode: 0644]
openmp/runtime/cmake/LibompCheckLinkerFlag.cmake [deleted file]
openmp/runtime/cmake/config-ix.cmake